﻿// <copyright file="UPnPMedia.cs" company="EffuEfface">
//      Copyright (c) Effu Efface Consulting  All rights reserved.
// </copyright>
// <author>Ryan R. Sites</author>

namespace TVersiPlay.DTO
{
    using System;
    using System.Collections.Generic;

    public class UPnPMedia
    {
        #region declarations

        private string icon;

        #endregion //declarations

        #region constructors
        #endregion //constructors

        #region properties

        public string MediaId { get; set; }
        public string MediaName { get; set; }
        public string Creator { get; set; }
        public string Date { get; set; }
        public string Album { get; set; }
        public string AlbumArtUri { get; set; }
        public string Artist { get; set; }
        public string Genre { get; set; }
        public string Icon
        {
            get
            {
                if (string.IsNullOrEmpty(this.AlbumArtUri))
                    return this.icon;
                else
                    return this.AlbumArtUri;
            }
            set
            {
                this.icon = value;
            }
        }

        public string MediaUrl { get; set; }
        public string Bitrate { get; set; }
        public string Duration { get; set; }
        public string Resolution { get; set; }
        public string MediaType { get; set; }

        #endregion //properties

        #region methods
        #endregion //methods

        #region events
        #endregion //events
    }
}
